<template>
  <div style="margin-top:24px">
    <div>我是组件C</div>
    {{demo}}
  </div>
</template>
 
<script>
export default {
  inject: ["for"],
  data() {
    return {
      demo: this.for
    };
  }
};
</script>